home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
assemblr
/
library
/
sampler0
/
stuffkb.doc
< prev
next >
Wrap
Text File
|
1989-12-26
|
3KB
|
133 lines
STUFFKB.COM v1.01
December 26, 1989
STUFFKB is a PUBLIC DOMAIN PROGRAM which places parameters on the
command line into the BIOS Keyboard buffer. It was created to enable
batch files to pass parameters to applications but may have other uses
(see example below). As placed on BBSs, the following files should be
in a single archived file:
STUFFKB.TXT This File
STUFFKB.COM Program File
STUFFKB.Vxx Version xx of Assembler Source File
To use the program, type STUFFKB parameters. "Parameters" is a
sequence of keystrokes to be placed in the keyboard buffer. Control
characters can be passed by enclosing them in ~ characters. (i.e.
~CR~ passes an ASCII carriage return- decimal 13, ^M). Version 1.01
supports the following "control" codes:
Function Code ASCII Value
------------- ---- ----------
Carriage Return CR 013
Back Space BS 008
Escape ESC 027
While this is sufficient for most uses, it can easily be expanded by
editing the accompanying Assembler source code and recompiling.
LIMITATIONS:
STUFFKB is not Memory Resident and does not expand the keyboard
buffer beyond the BIOS limit of 15 characters. It will therefore
not stuff more than 15 characters.
STUFFKB was designed to work directly with the BIOS keyboard of
IBM PCs and compatibles. It will not work with some early "cheap"
klones (i.e. SANYO), or with Memory resident keyboard extenders
which move the BIOS Buffer.
If you enclose an unrecognized control code within "~" characters,
STUFFKB will stuff a ^G (Bell) character instead. Some DOS
versions and most applications will BEEP the PC's speaker when
this character is encountered.
EXAMPLE:
I wrote this program to pass parameters to applications by
stuffing the keyboard buffer. For instance suppose you wanted a
batch file to load Lotus 123 (TM) and a spreadsheet passed as a
parameter to the batch file. I.E. "L Homework" to bring you from
the DOS prompt into Lotus with the Homework spreadsheet
displayed. The following batch file would accomplish this
assuming 1) the spreadsheet is in Lotus' default data directory
(\Lotus\wks for me) and 2) STUFFKB.COM is in the current
subdirectory or active DOS path.
L.BAT
CD \Lotus
IF EXIST C:\Lotus\wks\%1.WK? GOTO Stuff
123
GOTO Exit
:Stuff
--> STUFFKB 123~CR~/FR%1~CR~
:Exit
I hope you find STUFFKB useful. If you modify and return the program
to the public, please rename the assembler source to a new revision
level.
Ed Derzawiec